import router from "./index";
import store from "../store/index"
router.beforeEach((to,from,next) =>{
    //
    // store.commit('getToken')
    const logintoken = sessionStorage.getItem("token")
    if(logintoken || to.path === '/'){
        console.log(logintoken);
        next();
    }else{
        next('/')
    }
})